<?php
namespace ImiDemo\HttpDemo\MainServer\Model;

use Imi\Model\Model;
use Imi\Model\Annotation\Table;
use Imi\Model\Annotation\Column;
use Imi\Model\Annotation\Entity;

/**
 * UserFriend
 * @Entity
 * @Table(name="tb_user_friend", id={"id"})
 * @property int $id
 * @property int $userId
 * @property int $friendUserId
 */
class UserFriend extends Model
{
	/**
	 * id
	 * @Column(name="id", type="int", length=10, accuracy=0, nullable=false, default="", isPrimaryKey=true, primaryKeyIndex=0, isAutoIncrement=true)
	 * @var int
	 */
	protected $id;

	/**
	 * 获取 id
	 *
	 * @return int
	 */ 
	public function getId()
	{
		return $this->id;
	}

	/**
	 * 赋值 id
	 * @param int $id id
	 * @return static
	 */ 
	public function setId($id)
	{
		$this->id = $id;
		return $this;
	}

	/**
	 * user_id
	 * @Column(name="user_id", type="int", length=10, accuracy=0, nullable=false, default="", isPrimaryKey=false, primaryKeyIndex=-1, isAutoIncrement=false)
	 * @var int
	 */
	protected $userId;

	/**
	 * 获取 userId
	 *
	 * @return int
	 */ 
	public function getUserId()
	{
		return $this->userId;
	}

	/**
	 * 赋值 userId
	 * @param int $userId user_id
	 * @return static
	 */ 
	public function setUserId($userId)
	{
		$this->userId = $userId;
		return $this;
	}

	/**
	 * friend_user_id
	 * @Column(name="friend_user_id", type="int", length=10, accuracy=0, nullable=false, default="", isPrimaryKey=false, primaryKeyIndex=-1, isAutoIncrement=false)
	 * @var int
	 */
	protected $friendUserId;

	/**
	 * 获取 friendUserId
	 *
	 * @return int
	 */ 
	public function getFriendUserId()
	{
		return $this->friendUserId;
	}

	/**
	 * 赋值 friendUserId
	 * @param int $friendUserId friend_user_id
	 * @return static
	 */ 
	public function setFriendUserId($friendUserId)
	{
		$this->friendUserId = $friendUserId;
		return $this;
	}

}